package com.alan.observer.jdk;

import java.util.Observable;

/**
 * Created by Alan on 2018/8/21.
 */
public class WeChatServer extends Observable {

    private static WeChatServer instance = new WeChatServer();
    private WeChatServer() {
    }

    public static WeChatServer getInstance() {
        return instance;
    }

    public void getMessage(String message){
        super.setChanged();
        super.notifyObservers(message);
//        System.out.println("收到");
    }
}
